Skip to main content

ListToJObjectArray

Type​

handler

Summary​

Convert a List of JObjects into a JObjectArray

Syntax​

ListToJObjectArray(<pList>,<pClass>)

Description​

Use ListToJObjectArray to convert pList where each element is a JObject into a JObjectArray. Note all elements of pList must conform to the class pClass.

Parameters​

NameTypeDescription

pList

The List to convert

pClass

The class name of the JObjects in the List

Examples​

    variable tArray as JObjectArray
put ListToJObjectArray(\
[StringToJString("foo"), StringToJString("bar")], \
"java/lang/String") into tArray

Value​

NameTypeDescription

return

A JObjectArray where each element is a JObject of class pClass

Thank you for your feedback!

Was this page helpful?